wayland: Use scale from core wl_output protocol
authorOlivier Fourdan <ofourdan@redhat.com>
Wed, 22 May 2019 10:11:36 +0000 (12:11 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Wed, 22 May 2019 10:22:36 +0000 (12:22 +0200)
commit713fceb1bdadb1a036bf9a8ea8c0288ef2bdc13a
tree7a80d453b8b5651a5e661e862432abb0ec6dbeba
parentd0137ef62745ff29c90bec05320bd9cf098c2218
wayland: Use scale from core wl_output protocol

The “xdg-output” protocol provides clients with the outputs size and
position in compositor coordinates, and does not provide the output
scale which is already provided by the core “wl_output” protocol.

So when receiving the wl_output scale event, we should update the scale
regardless of “xdg-output” support, otherwise the scale will remain to
its default value of 1 and the surface will be scaled up by the
compositor to match the actual output scale, which causes blurry fonts
and widgets.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/1901
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
gdk/wayland/gdkdisplay-wayland.c